<?php if($this->res):?>
<?php $items = $this->res?>
<div class='clearfix' style="position: relative;">
<?php $second = true;?>
<?php $reklajner = false;?>
<?php $items = array_chunk($items,2);?>
<?php foreach ($items as $group):?>
<div class='clearfix'>
	<?php foreach ($group as $item):?>
		<?php if ($item['alias'] == 'reklajner'):?>
			<div class='mech_item' style="width: 45%;height: 200px;padding: 20px;float: left;">
				<h3><?=$item['label']?></h3>
				<object width="100%" height="100%" type="application/x-shockwave-flash" data="<?=$item['file'] ?>">
							<param name="movie" value="<?=$item['file'] ?>">
							<param value="opaque" name="wmode">
							<param name="quality" value="high">
				</object>
				<div class='text_wrapper'>
					<div class='text'><?php echo $item['text'];?></div>
				</div>
			</div>	
			<?php continue; ?>
		<?php endif;?>
		<?php $second = !$second;?>
		<div class='mech_item <?=($second)?'second':''?>'>
			<h3><?=$item['label']?></h3>
			<div class="image">
				<?php $images=explode(',', trim($item['images']));?>
				<?php if($images[0]):?>
						<span id='round_lt' class='rounded'></span>
						<span id='round_lb' class='rounded'></span>
						<span id='round_rt' class='rounded'></span>
						<span id='round_rb' class='rounded'></span>
						<a class='iload' href="<?=$this->url(array('alias'=>$item['alias']),'mechItem')?>">
							<?php $img_src = $this->image_Helper($images[0])->crop()->resize(500,300,'fill')->getUrl();?>
							<img alt='' width='100%' src='<?=$img_src?>' />
						</a>
				<?php endif;?>
			</div>	
			<br/>
			<div class='text_wrapper'>
				<div class='text'><?php echo $item['text'];?></div>
			</div>
		</div>
		
	<?php endforeach;?>
</div>
<?php endforeach;?>
</div>
<?php endif;?>